package com.lin.vo;

import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
@ApiModel(value = "UserVO", description = "用户VO实体")
@TableName("user")
public class UserVO {
    @ApiModelProperty(value = "用户ID", example = "1")
    private Long id;

    @ApiModelProperty(value = "用户名", example = "lin")
    private String username;

    @ApiModelProperty(value = "手机号", example = "12345678901")
    private String phone;

    @ApiModelProperty(value = "用户信息", example = "this is a user")
    private String info;

    @ApiModelProperty(value = "用户余额", example = "1000")
    private Integer balance;

    @ApiModelProperty(value = "用户状态(1正常, 0冻结)", example = "1")
    private Integer status;

    @ApiModelProperty(value = "用户收货地址", example = "this is addresses")
    private List<AddressVO> addresses;
}
